extends OptionButton


func _ready():
	var grid_info = FlyMap.data["grid_info"]
	
	add_item("无", -1)
	
	if grid_info && grid_info.size()>1 && grid_info[0].size()>1:
		
		for i in range(grid_info.size()):
			for j in range(grid_info[0].size()): 
				var info = grid_info[i][j]
				if info:
					var id = j*grid_info.size()+i+1
					add_item(str(info["name"], "【",id, "】"), id)
